package com.snow.remote;

import com.alibaba.dubbo.config.annotation.Reference;
import com.snow.service.RabbitmqService;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author: 爱飘de小子
 * @CreateDate: 2018/8/17 23:47
 * @Version: 1.0
 */
@Service
public class RabbitmqRemote {

    @Reference(version = "1.0.0",application = "${dubbo.application.id}")
    private RabbitmqService rabbitmqService;


    public String sendMessage(String message) {
        return rabbitmqService.sendMessage(message);
    }
}
